@charset "utf-8";

*{
    margin: 0;
    padding: 0;
}
//rem换算函数
@function r($px){
    @return ($px/40)*1rem; 
}
#loading{
    width: 400px;
    height: 100vh;
    background-position: 0% 0%;
    position: absolute;
    left: 55%;
    margin-left: -300px;
    overflow: hidden;
    max-height: 812px;
    background-color: rgb(156,0,0);
    img{
        width: 400px;
    }
    #img3{
        position: absolute;
        bottom: 0;
    }
    #img2{
        width: 60%;
        position: absolute;
        top: 10%;
    }
    #loadingText{
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%,-50%);
        span{
            color: white;
            font-size:r(10);
        }
    }
}

@media (max-width:768px){
    #loading{
        width:100%;
        left: 0%;
        margin-left: 0px;
    }
    #loading #loadingText{
        top: 45%;
        span{
            font-size:r(30);
        }
    }
    #loading img{
        width: 100%;
    }
}